<?php

class TestExceptionViewHandler implements Base\ViewHandler
{
    public $vars = array();
    
    function __construct( $tplName ) { $this->name = $tplName; }
    
    function assign( $name, $value ) { $this->vars[$name] = $value; }
    
    function render()
    {
        $this->result = new stdClass;
        $this->result->name = $this->name;
        $this->result->vars = $this->vars;
    }
    
    function getName() { return $this->name; }
    
    function getResult( $flag = TRUE ) { throw new \Exception('foo'); }
}
